<?php

namespace app\user\validate;
use app\common\validate\BaseValidate;

class TransactionValidate extends BaseValidate
{
    /**
         * 验证规则
         */
    protected $field = [
        'transaction_id' => '' ,
'user_id' => '对应user表' ,
'action' => '操作者' ,
'type' => '0=收入' ,
'qc_balance' => '期初金额' ,
'amount' => '交易金额' ,
'balance' => '剩余余额' ,
'source_no' => '来源订单号' ,
'source_type' => '来源类型:1=积分购买;2=发表文章消耗积分;3=签到;4=连续签到7天;5=首次观看视频;6=评论;7=发布文章;8=分享' ,
'remark' => '备注' ,
'cause' => '原因' ,
'module' => 'points=积分' ,
'to_payment' => '支付方式' ,
'card_number' => '购物卡卡号' ,
'create_time' => '创建日期' ,

    ];

    /**
     * 验证场景
     */
    protected $scene = [
        'update'=>[],
        'save'=>[],
    ];

    /**
     * 提示消息
     */
    protected $message = [

    ];


}
